/* c-message组件样式 */

.c-message {
    position: fixed;
    top: 30px;
    left: 76%;
    /* transform:translateX(-50%); */
    padding-left: 50px;
    padding-right: 20px;
    height: 40px;
    line-height: 40px;
    background: #fff;
    min-width: 200px;
    color: #666;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04);
    z-index: 9999;
}

/* 小屏幕（平板，大于等于 768px） */
@media (min-width: 200px) and (max-width: 500px) {
    .c-message {
        position: fixed;
        top: 30px;
        left: 40%;
        /* transform:translateX(-50%); */
        padding-left: 50px;
        padding-right: 20px;
        height: 40px;
        line-height: 40px;
        background: #fff;
        min-width: 200px;
        color: #666;
        box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04);
        z-index: 9999;
    }
}

@media (min-width: 600px) and (max-width: 800px) {
    .c-message {
        position: fixed;
        top: 30px;
        left: 71%;
        /* transform:translateX(-50%); */
        padding-left: 50px;
        padding-right: 20px;
        height: 40px;
        line-height: 40px;
        background: #fff;
        min-width: 200px;
        color: #666;
        box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04);
        z-index: 9999;
    }
}

.c-message--icon {
    color: #fff;
    width: 40px;
    height: 40px;
    text-align: center;
    position: absolute;
    left: 0;
    top: 0;
    line-height: 40px;
}

.c-message--success {
    background: #13CE66 url() no-repeat 0 50%;
}

.c-message--error {
    background: #FF4949 url() no-repeat 0 50%;
}

.c-message--info {
    background: #20A0FF url() no-repeat 0 50%;
}

.c-message--warning {
    background: #F7BA2A url() no-repeat 0 50%;
}

.c-message--close {
    position: absolute;
    right: 10px;
    color: #ffced9;
    text-decoration: none;
    cursor: pointer;
    font-size: 30px;
    top: 0;
    line-height: 34px;
    display: block;
    height: 40px;
}

.c-message--close:hover {
    color: #00e5a3;
    text-decoration: none;
}

@keyframes messageFadeInDown {
    0% {
        -webkit-transform: translate3d(0, -100%, 0);
        transform: translate3d(0, -100%, 0)
    }

    100% {
        -webkit-transform: none;
        transform: none
    }
}

.c-message.messageFadeInDown {
    -webkit-animation-duration: .6s;
    animation-duration: .6s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-name: messageFadeInDown;
    animation-name: messageFadeInDown;
}

@keyframes messageFadeOutUp {
    0% {
        opacity: 1
    }

    100% {
        opacity: 0;
        -webkit-transform: translateY(-100%);
        transform: translateY(-100%)
    }
}

.c-message.messageFadeOutUp {
    -webkit-animation-duration: .6s;
    animation-duration: .6s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-name: messageFadeOutUp;
    animation-name: messageFadeOutUp
}

/* .c-message--tip{
    text-align: center;
} */